package com.xueyl.springboot.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues="test")
public class Receiver {

	@RabbitHandler
	public void process(Object mess){
		System.out.println("mess: " +mess);
	}
}
